Script Manager Derivation Specifiers
For backward compatibility with earlier releases of the Mac OS, the Text Encoding Conversion Manager provides the functionsUpgradeScriptInfoToTextEncoding
(page 56) andRevertTextEncodingToScriptInfo
(page 58) that you can use to derive Script Manager values from a text encoding or vice versa.When using these functions, you can specify a Script Manager language code, script code, and/or font values to derive a text encoding. These three constants are defined to allow you to identify any part of the derivation you don't care about. When reverting from a text encoding to Script Manager values, the Unicode Converter returns these constants for a corresponding value it does not derive:
kTextLanguageDontCare
,kTextScriptDontCare
, andkTextRegionDontCare
.
enum { kTextLanguageDontCare = -128 kTextScriptDontCare = -128 kTextRegionDontCare= -128 );Constant descriptions
kTextLanguageDontCare
- Indicates that language code is not provided for the derivation.
kTextScriptDontCare
- Indicates that the code is not provided for the derivation.
kTextRegionDontCare
- The region code is not provided for the derivation.